package cn.lcc.ymcc.fegin;

import cn.lcc.ymcc.result.JSONResult;
import feign.hystrix.FallbackFactory;
import org.springframework.stereotype.Component;

@Component
public class UaafeignCallBack implements FallbackFactory<IUaaFeignClient> {
    @Override
    public IUaaFeignClient create(Throwable throwable) {
        return login -> JSONResult.success(-1L,"");
    }
}